package com.cx.factoryMethod.api.impl;

import com.cx.common.restful.BaseResult;
import com.cx.factoryMethod.api.GiveAward;
import com.cx.factoryMethod.dto.Goods;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:cxy
 * @Date:2022/3/21 21:04
 */
public class GoodsAwardImpl implements GiveAward {



    public BaseResult<?> awardToUser() {
        System.out.println("-----------------GoodsAwardImpl.awardToUser");
        return BaseResult.success(Goods.builder()
                .goodsId(11L)
                .goodsName("g1")
                .goodsPrice(new BigDecimal("11"))
                .createTime(new Date()));
    }
}
